const { contextBridge, ipcRenderer } = require('electron')

console.log("输出一个中文字符串！")

contextBridge.exposeInMainWorld('electronAPI', {
    selectFile: () => ipcRenderer.invoke('dialog:selectFile'),
    selectFolder: () => ipcRenderer.invoke('dialog:selectFolder'),
    unzip: (arg) => ipcRenderer.invoke('unzip', arg)
})
